This check will always be true currently, because there are only three
possible types of policy decisions, and both of the others are already
handled above. But if new policy decision types are ever added in the
future, then we probably don't want to execute this code.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3813>
return true;
}
+ if (type !== WebKit.PolicyDecisionType.NAVIGATION_ACTION)
+ return false;
+
const uri = GLib.Uri.parse(request.get_uri(), HTTP_URI_FLAGS);
if (uri.get_host() !== this._uri.get_host() && this._originalUrlWasGnome) {